package com.cai.kcsj.service.impl;

import com.cai.kcsj.mapper.LoginMapper;
import com.cai.kcsj.entity.User;
import com.cai.kcsj.service.LoginServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/4 09 : 29
 * @package：com.cai.kcsj.service.impl
 */
@Service
public class LoginServerImpl implements LoginServer {
    @Autowired
    private LoginMapper login;
    @Override
    public User login(User user) {
        User login = this.login.login(user);
        return login;
    }

    @Override
    public boolean regist(User user) {
        login.regist(user);
        return true;
    }

    @Override
    public int ajax(String uname) {

        return login.ajax(uname);
    }
}
